home *** CD-ROM | disk | FTP | other *** search
/ Champak 123 / (Vol 123) Jan 13 2011.iso / Games / bread-cooking.swf / scripts / frame_84 / PlaceObject2_65_980 / CLIPACTIONRECORD onClipEvent(load).as next >
Text File  |  2011-01-13  |  623b  |  33 lines

  1. onClipEvent(load){
  2.    function AddSound()
  3.    {
  4.       yakiCnt++;
  5.       soundObj.setVolume(yakiCnt * 10 + 10);
  6.       if(yakiCnt == 1)
  7.       {
  8.          soundObj.start(0,999999);
  9.       }
  10.    }
  11.    function RemoveSound()
  12.    {
  13.       yakiCnt--;
  14.       soundObj.setVolume(yakiCnt * 10 + 10);
  15.       if(yakiCnt == 0)
  16.       {
  17.          soundObj.stop();
  18.       }
  19.    }
  20.    function StopSound()
  21.    {
  22.       soundObj.stop();
  23.       vakiCnt = 0;
  24.    }
  25.    yakiCnt = 0;
  26.    isDrag = true;
  27.    state = 0;
  28.    Mouse.hide();
  29.    this.gotoAndStop("tsutsuki");
  30.    soundObj = new Sound(this);
  31.    soundObj.attachSound("yaku");
  32. }
  33.